package cn.itlaobing.spring.entity;

import java.io.Serializable;

import org.hibernate.validator.constraints.NotEmpty;

import cn.itlaobing.spring.entity.enums.Gender;

public class Teacher extends BaseEntity implements Serializable{

	private static final long serialVersionUID = 1L;

	@NotEmpty(message="用户名不能为空")
	//@Length(min=1,max=10)
	private String name;
	
	private Gender gender=Gender.Male;
	
	@NotEmpty(message="年龄不能为空")
	private String age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Gender getGender() {
		return gender;
	}

	public void setGender(Gender gender) {
		this.gender = gender;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "Teacher [name=" + name + ", gender=" + gender + ", age=" + age + "]";
	}

}
